import request from '@/utils/request'
const serviceName = 'Warehouse'
//  列表
export function queryWarehouses(data) {
  return request({
    url: serviceName + '/WarehouseBasic/QueryWarehouses',
    method: 'post',
    data
  })
}
//  详情
export function getWarehouse(data) {
  return request({
    url: serviceName + '/WarehouseBasic/GetWarehouse',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveWarehouse(data) {
  return request({
    url: serviceName + '/WarehouseBasic/SaveWarehouse',
    method: 'post',
    data
  })
}
//  删除
export function deleteWarehouses(data) {
  return request({
    url: serviceName + '/WarehouseBasic/DeleteWarehouses',
    method: 'post',
    data
  })
}

export default {
  queryWarehouses,
  getWarehouse,
  saveWarehouse,
  deleteWarehouses
}
